/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Objects;

import GameEngine.GameConstants.Effect;
import GameEngine.GameConstants.Graphic;
import GameEngine.GameConstants.Material;
import GameEngine.GameConstants.Modifier;
import GameEngine.Vector;

/**
 * Starting point for all the players.
 * There can only be one in a level!
 * @author jh20
 */
public class SpawnPoint extends GameObject {

    


    /**
     * A constructor
     * @param dir
     * @param min
     * @param max
     */

    public SpawnPoint(Vector cen, Vector s)
    {
        super(new Vector(1,0), cen, s, Graphic.SPAWN_POINT);
        material = Material.META_ELEMENTS;
        isTangible = false;
    }

    public SpawnPoint(SpawnPoint toCopy)
    {
        super(new Vector(1,0), toCopy.getCenter(), toCopy.getSize(), Graphic.SPAWN_POINT);
        material = Material.META_ELEMENTS;
        isTangible = false;
    }

    @Override
    public void receiveEffect(Effect e, Vector m, int power)
    {
        // spawn point cannot be interacted with
    }

    @Override
    public void collide(GameObject o)
    {
        // spawn point cannot be interacted with
    }



}
